package com.cheng.service.user;

import com.cheng.dao.user.UserMapper;
import com.cheng.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@SuppressWarnings("all")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(User user) {
        return userMapper.getUser(user);
    }

    @Override
    public List<User> getAll() {
        return userMapper.queryAll();
    }

    @Override
    public int updUser(User user) {
        return userMapper.updateUser(user);
    }
}
